﻿using System;
using System.ComponentModel.Composition;

namespace Security.Specs.Implementation.NodeRoots
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public sealed class SecurityNodeRootMetadataAttribute : Attribute, ISecurityNodeRootMetadataAttribute
    {
        public SecurityNodeRootMetadataAttribute(Type type, int order)
        {
            Type = type;
            Order = order;
        }

        public int Order { get; set; }

        public Type Type { get; set; }
    }
}
